Skip to content

DRAFT — NOT DEPLOYABLE: Integrate durable attempt and ordered reporting - #556

Draft
JusterZhu wants to merge 14 commits into
justerzhu-persist-attempt-snapshot-bindingfrom
justerzhu-integrate-durable-attempt-reporting
Draft

JusterZhu wants to merge 14 commits into
justerzhu-persist-attempt-snapshot-bindingfrom
justerzhu-integrate-durable-attempt-reporting

Conversation

@JusterZhu

Copy link
Copy Markdown
Collaborator

Status and review boundary

Draft; not deployable. This is an integration of two unmerged dependency stacks, not production recovery or a readiness-to-report closure. Review this PR's conflict resolution and integration tests separately from the already open dependency changes. Its large diff against #551 intentionally includes the other unmerged report stack; it does not mean that stack has landed.

Two direct dependencies:

  • #551, base justerzhu-persist-attempt-snapshot-binding: product-code baseline e92bd9f2fd9572c6fbc6b2423e364e103939b69c; doc-only current head afc584562b01117c2ed64bbd92a5c42990a798f2 is an ancestor of this branch.
  • Draft #550, head bb97a74f8eac25a665002722a17daea037072f2c; its original fixed head 1bbc64e02d30385af5b08e07cc464dccdeda6aa5 and its dependencies #548 21cf9e1fb26c083f6d7b41f91953b0489ec00785, #544 66a9403259235dd19c4602ed17a8c51c4615fba0, #541 623a87ce5112af0dab4d23c457797d23cd419143 are all ancestors. Add opt-in persistent ordered report outbox #550 is unmerged and depends on those report layers.

Integration HEAD: 4e60cb4b68da162e3e11b23959356417423452b9. Merge commits: bb05f5dffc73e5c18357d68a40f2391d67a011cd (e92 + original #550), 6c4558186ac0b4e722a83f62c7e91286298fcf01 (afc docs), ad6521dfa97836432dbea5fffd9e7d34052d5119 (bb97 lock fix). Unrelated Bowl change previously seen on #551 was not merged; #551 was restored to afc.

Conflict resolution

  • AbstractStrategy: retain per-record batch failure priority and stage/type routing; filter durable Success at final batch dispatch, including records skipped because a fallback full package covers later chain versions. Durable rollback remains suppressed.
  • ClientStrategy: retain the single public IProcessContractProvider and async SendAsync; preserve the durable role-level Success guard.
  • CoreTest.csproj: keep both process-peer references and enable test discovery (IsTestProject=true).

Validation and precise scope

Windows, current HEAD: 74 passed, using:

dotnet test tests\CoreTest\CoreTest.csproj -c Release --no-restore --filter "FullyQualifiedName~DurableUpdateAttemptStoreTests|FullyQualifiedName~StartupHealthProcessTests|FullyQualifiedName~ReportRoutingTests|FullyQualifiedName~FailureReportingTests|FullyQualifiedName~OrderedUpdateReporterTests|FullyQualifiedName~PersistentUpdateReporterTests|FullyQualifiedName~ProcessContractProviderTests|FullyQualifiedName~IpcEncryptionTests|FullyQualifiedName~IpcFallbackTests" --logger "console;verbosity=minimal" -p:WarningLevel=0

dotnet build src\GeneralUpdate.Core\GeneralUpdate.Core.csproj -c Release --no-restore --verbosity quiet -p:WarningLevel=0 passed for netstandard2.0, net8.0 and net10.0. NuGet vulnerability warnings remain. Local Windows Native AOT publish of tests\ReportWorker\ReportWorker.csproj was blocked by missing C++ platform linker; the Windows/Linux AOT workflow is configured but its result must be checked separately.

  • Real child process: encrypted prebuilt ProcessContract and bound attempt marker, built-in updater and a real corrupt ZIP trigger Extract failure; actual loopback HTTP 503 leaves id 303/type 2/stage Extract in the SQLite outbox, then a different process explicitly calls ReplayAsync and sends the identical event to loopback HTTP 200. This is not a Client producer-to-child test or automatic replay.
  • Real platform middleware in-process: failed extraction, successful fallback ZIP, covered-chain skip, shared-record failure priority, durable Success suppression and legacy Success behavior. Existing outbox tests include concurrent processes and killed-writer replay; some HTTP tests use a test handler, not a real service.
  • Existing readiness and IPC tests independently cover explicit confirmation and marker rejection; they do not prove a linked producer→child→business-readiness reporting path. Legacy routing, failures, roles and fallback also include in-process/mocked cases; not a complete deployed-binary matrix.

Unfinished / safety limits

The actual Client producer→child→readiness/full, mixed, chain/fallback matrix and real apply-stage failure over production lifecycle are not established. Ordered reporting is not automatically configured or replayed on startup/network recovery. A successful enqueue is not delivery; on replay failure retry the queue rather than resubmitting the event. An old updater can ignore the marker and independently report Success: no trusted updater capability handshake exists. The fixed-key AES-CBC file IPC is unauthenticated, can contain application/authentication credentials, and does not provide durable anti-replay or tenant/record authorization. No single authorized writer, recovery owner, automatic recovery, global filesystem fence or production business-health closure is provided. Bowl/custom/OSS and old updater paths are not claimed covered. Do not enable ControlledRecovery/Lease or deploy this draft.

JusterZhu and others added 14 commits November 22, 2026 23:10
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant